import gfw from "../../../extensions/gfw3_x/assets/scripts/gfw/gfw";

interface ILoginReq {
    account: string,
    password: string
}

interface ILoginRecv extends IHttpRecv {
    data: string
}
export const checkLogin: (params: ILoginReq) => Promise<ILoginRecv> = (params: ILoginReq) => gfw.http.post(`/login`, params, null, false);
export const registerAccount: (params: ILoginReq) => Promise<ILoginRecv> = (params: ILoginReq) => gfw.http.post(`/register`, params, null, false);